package com.sinodata.bsm.common.vo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * AppresTopoRel entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "APPRES_TOPO_REL", uniqueConstraints = {})
public class AppresTopoRel implements java.io.Serializable {

    // Fields    

    private Long id;
    private Long resId;
    private Long tab;
    private Long topuConfId;

    // Constructors

    /** default constructor */
    public AppresTopoRel() {
    }

    /** minimal constructor */
    public AppresTopoRel(Long id) {
        this.id = id;
    }

    /** full constructor */
    public AppresTopoRel(Long id, Long resId, Long tab, Long topuConfId) {
        this.id = id;
        this.resId = resId;
        this.tab = tab;
        this.topuConfId = topuConfId;
    }

    // Property accessors
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "sequence")
    @SequenceGenerator(name = "sequence", sequenceName = "APPRES_TOPO_REL_SEQ")
    @Column(name = "ID", unique = true, nullable = false, insertable = true, updatable = true, precision = 22, scale = 0)
    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(name = "RES_ID", unique = false, nullable = true, insertable = true, updatable = true, precision = 22, scale = 0)
    public Long getResId() {
        return this.resId;
    }

    public void setResId(Long resId) {
        this.resId = resId;
    }

    @Column(name = "TAB", unique = false, nullable = true, insertable = true, updatable = true, precision = 22, scale = 0)
    public Long getTab() {
        return this.tab;
    }

    public void setTab(Long tab) {
        this.tab = tab;
    }

    @Column(name = "TOPU_CONF_ID", unique = false, nullable = true, insertable = true, updatable = true, precision = 22, scale = 0)
    public Long getTopuConfId() {
        return this.topuConfId;
    }

    public void setTopuConfId(Long topuConfId) {
        this.topuConfId = topuConfId;
    }

}